﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Kiosk
{
    public partial class ArrowControl : UserControl
    {
        public ArrowControl()
        {
            InitializeComponent();
        }

        int counter = 1;
        private void timer1_Tick(object sender, EventArgs e)
        {
            switch (counter)
            {
                case 1:
                    pictureBox5.Visible = true;
                    break;
                case 2:
                    pictureBox4.Visible = true;
                    break;
                case 3:
                    pictureBox3.Visible = true;
                    break;
                case 4:
                    pictureBox2.Visible = true;
                    break;
                case 5:
                    pictureBox1.Visible = true;
                    break;
                case 6:
                    pictureBox1.Visible = false;
                    pictureBox2.Visible = false;
                    pictureBox3.Visible = false;
                    pictureBox4.Visible = false;
                    pictureBox5.Visible = false;
                    counter = 0;
                    break;
            }
            counter++;
        }
    }
}
